$(document).ready(function(){
	$("#camera1").click(function(){
		window.lemon.js2client(8,"e_event");
	});
});

$(document).ready(function(){
	$("#photo1").click(function(){
		window.lemon.js2client(17,"e_event");
	});
});

$(document).ready(function(){
	$("#edit1").click(function(){
		window.lemon.js2client(19,user_id);
	});
});

$(document).ready(function(){
	$("#share").click(function(){
		window.lemon.js2client(22,"false");
		window.lemon.js2client(20,"EID ");
		window.lemon.js2client(24,"false ");
		window.lemon.js2client(2,"eventlist.html?user_id="+user_id);
	});
});

$(document).ready(function(){
	$("#cancel").click(function(){
		window.lemon.js2client(22,"false");
		window.lemon.js2client(20,"EID ");
		window.lemon.js2client(24,"false ");
		window.lemon.js2client(2,"navigate.html?user_id="+user_id);
	});
});

var sqlrlt = window.lemon.searchTable("select _id from User;");
var sqlrlt1 = new String(sqlrlt);
var begin = sqlrlt1.lastIndexOf(":")+2;
var end = sqlrlt1.lastIndexOf("\"");
var user_id = sqlrlt1.substring(begin,end);


var sqlrlt = window.lemon.searchTable("select phone_number from User;");
var sqlrlt1 = new String(sqlrlt);
var begin = sqlrlt1.lastIndexOf(":")+2;
var end = sqlrlt1.lastIndexOf("\"");
var nick_name = sqlrlt1.substring(begin,end);